package demo4;

//多个接口
interface IA{
    void testA();
}
interface IB{
    void testB();
}
class TestDemo4 implements IA,IB{

    @Override
    public void testA() {
        System.out.println("testA()");
    }

    @Override
    public void testB() {
        System.out.println("testB()");
    }
}
public class Test4 {
    public static void main(String[] args) {
        TestDemo4 testDemo4=new TestDemo4();
        testDemo4.testA();
        testDemo4.testB();
    }

}
